<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%@ include file="common/taglibs.jsp"%>
<table class="" style="width: 780px; height: 800px;">
<tbody>
<tr>
	<td
		style="vertical-align: top; padding: 25px 5px 5px 25px; width: 200px;">
		<s:iterator var="parent" value="products">
			<div align="center"
				style="width: 160px; height: 220px; padding: 5px 5px 5px 5px; cursor: pointer; -moz-border-radius: 5px 5px 5px 5px; float: left; margin: 0px 10px 10px 0px; text-align: center;">
				<div
					style="width: 160px; height: 20px; font-weight: bold; text-align: center;">
					<s:property value="prdName" />
				</div>
				<div onclick="viewDetails('<s:property value="#parent.prdId"/>')"
					style="width: 125px; height: 125px; vertical-align: middle; margin-left: 17px;"
					align="center">
					<img alt="" src="./uploadImages/<s:property value="prdImageUrl1"/>"
						height="120" width="120">
				</div>
				<div
					style="width: 160px; height: 50px; font-size: 10pt; margin-top: 2px; word-wrap: break-word; text-align: left;">
					<s:property value="prdDesc" />
				</div>
				<div align="left">
					<div style="float: left;">Quantity:</div>
					<input type="text" id="product_<s:property value="#parent.prdId"/>" value="1" style="width: 40px;"/>
				</div>
				<div>
					<%
					if(request.getSession().getAttribute("airlineId") != null){
						%>
						<p
						style="background-color: #EE2C2C; color: white; float: left; width: 30%; font-size: 10pt;"
						onclick="addToCartWithoutPopup('<s:property value="#parent.prdId"/>', '<%=request.getSession().getAttribute("airlineId").toString()%>');">BUY</p>
						<%
					}else{
						%>
						<p
						style="background-color: #EE2C2C; color: white; float: left; width: 30%; font-size: 10pt;"
						onclick="openAirlinePopup('<s:property value="#parent.prdId"/>');">BUY</p>
						<%
					}
					%>

					<p
						style="background-color: #333333; color: white; float: right; width: 70%; font-size: 10pt;">
						<s:iterator var="child" value="#parent.airlineDetails">
							<s:property value="#cur.currencyCode" />
						</s:iterator>
						<s:iterator var="cur" value="#child.currency">
							<s:property value="#child.unitPrice" />
						</s:iterator>
					</p>
					
				</div>
				<div style="padding-top: 25px;">
					Discount: 5%
				</div>
			</div>
		</s:iterator></td>
</tr>
</tbody>
</table>